package gussfist.game;

import com.lovo.util.Util;

/*
机选类
 */
public class Computer extends Role {
    @Override
    public void generateNumbers() {
        int number = Util.random(1, 3);
        if (number == 1) {
            System.out.println("电脑出拳：石头");
        } else if (number == 2) {
            System.out.println("电脑出拳：剪刀");
        } else {
            System.out.println("电脑出拳：布");
        }
        this.setNumber(number);
    }
}
